﻿@model Urna_Virtual__Galicia.Models.Candidato

@{
    ViewBag.Title = "Modificar";
}

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Vamos a modificar un par de cosas de tu candidato c:</legend>

        @Html.HiddenFor(model => model.id)

        <div class="editor-label">
          Nombre
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.nombre)
            @Html.ValidationMessageFor(model => model.nombre)
        </div>

        <div class="editor-label">
           Apellido
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.apellido)
            @Html.ValidationMessageFor(model => model.apellido)
        </div>

        <div class="editor-label">
           Foto para reconocer al chorro
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.url)
            @Html.ValidationMessageFor(model => model.url)
        </div>

        <p>
            <input type="submit" value="Guardar" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Volver a la lista =) ", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
